﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddInformation.aspx.cs"
    ValidateRequest="false" Inherits="NJL.WebUsers.AdminEnterprise.AddInformation" %>

<%@ Register Src="../Controls/WUCUservisitorLeft.ascx" TagName="WUCUservisitorLeft"
    TagPrefix="uc3" %>
<%@ Register Src="../Controls/UCenterHeader.ascx" TagName="UCenterHeader" TagPrefix="uc4" %>
<%@ Register Src="../Controls/UcenterFooter.ascx" TagName="UcenterFooter" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>出游主题</title>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <link href="../Styles/base1.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../Styles/manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function check() 
        {
            var $txtAttractionsTitle = $('#<%=txtAttractionsTitle.ClientID %>').val();
            $txtAttractionsTitle = $.trim($txtAttractionsTitle);
            if ($txtAttractionsTitle == "") {
                alert("标题不能为空哦^_^");
                return false;
            }
            var $ddlType = $('#<%=ddlType.ClientID %>').val();
            if ($ddlType == "0") {
                alert("请选择类型哦^_^");
                return false;
            }
            var $txtTag = $('#<%=txtTag.ClientID %>').val();
            if ($.trim($txtTag).length==0) {
                alert("标签不能为空哦^_^");
                return false;
            }
        }
    </script>    
</head>
<body class="managebg">
    <form id="form1" runat="server">
    <uc4:UCenterHeader ID="UCenterHeader1" runat="server" />
    <div class="managecont02 cleanFlex">
        <!--右侧内容-->
        <div class="f_right manageRight">
            <!--位置-->
            <div class="place">
            <span>欢迎您：<%=UserName %>&nbsp;&nbsp;[<a href="/Logout.aspx" class="green">退出登陆</a>]</span>
                <p>
                    您现在的位置是&nbsp;<strong><a href="Default.aspx">用户中心</a></strong>&gt;&gt;<strong>出游主题</strong></p>
            </div>
            <!--基本信息内容-->
            <div class="cleanFlex m_top_10">
            </div>
            <div>
                <!--标题-->
                <div class="titleManageRight">
                    <h2>
                        发表新主题</h2>
                </div>
                <!--内容-->
                <div class="cont cleanFlex write">
                    <p>
                        <strong>标题</strong></p>
                    <p>
                        <asp:TextBox ID="txtAttractionsTitle" runat="server" class="inputWrite" Style="width: 700px"
                            MaxLength="50"></asp:TextBox></p>
                    <p>
                        <strong>副标题</strong></p>
                    <p>
                        <asp:TextBox ID="txtAttractionFtitle" runat="server" class="inputWrite" Style="width: 700px"
                            MaxLength="50"></asp:TextBox></p>
                    <p>
                        <strong>类型</strong>：
                        <asp:DropDownList ID="ddlType" runat="server">
                        </asp:DropDownList>
                    </p>
                    <!--编辑-->
                    <div class="m_top_10">
                      <p>
                        <strong>内容</strong></p>
                        <asp:TextBox ID="txtContent" runat="server" CssClass="input" TextMode="MultiLine"
                            Height="61px" Width="100%"></asp:TextBox>
                        <script type="text/javascript">
                            CKEDITOR.replace('<%=txtContent.ClientID%>',
                            {
                                filebrowserBrowseUrl: '/ckfinder/ckfinder.html', //启用浏览功能
                                filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?Type=Images',
                                filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'//去掉逗号
                                //filebrowserUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                //filebrowserFlashBrowseUrl: '/ckfinder/ckfinder.html?Type=Flash',
                                //filebrowserFlashUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                            }
                            );
                        </script>
                        <p>
                            <strong>标签</strong></p>
                        <p>
                            <asp:TextBox ID="txtTag" runat="server" Width="400px" class="inputWrite" Style="width: 500px"
                                MaxLength="100"></asp:TextBox>(多个标签请用逗号隔开)</p>
                        <p>
                            <strong>图片</strong><asp:FileUpload ID="FileUpload1" runat="server" CssClass="input" /></p>
                        <p class="centeralign">
                            <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="发布主题" class="redbtn" OnClientClick="return check()" /></p>
                    </div>
                </div>
            </div>
        </div>
        <uc3:WUCUservisitorLeft ID="WUCUservisitorLeft1" runat="server" />
        <div class="managecontbottom">
        </div>
    </div>
    <uc5:UcenterFooter ID="UcenterFooter1" runat="server" />
    </form>
</body>
</html>
